{script src=$SITE_ROOT|cat:"lib/datepicker/ui.datepicker.js"}
{if 'en' ne $_lang}{script src=$SITE_ROOT|cat:"lib/datepicker/ui.datepicker-"|cat:$_lang|cat:".js"}{/if}
{script src=$SITE_ROOT|cat:"lib/datepicker/ui.datepicker.initialize.js"}
{style src=$SITE_ROOT|cat:"styles/ui.datepicker.css"}

<span class="datepicker-container">
	<input class="text" type="text" id="{$name|id}" {if $element.readonly}readonly="readonly"{else}name="{$name}"{/if} value="{$element.value|date_format:$element.format}" />
</span>

<script type="text/javascript">
var format = '{$element.format|datepicker_format}';
</script>
